﻿/****************************************************************************
Copyright (c) 2014-2015 凌惊雪 微信:Lingjingxue 邮箱:lingjingxue@sina.com QQ:271487457

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/


using ServerBase.Config;
using ServerBase.Protocol;
using ServerBase.Other;
using UtilPublic.Serialization;
using System;
using System.Runtime.Serialization;
using System.Text;
using static ServerBase.Config.Conf;
using UtilPublic.ServerLoger;
using System.Collections.Generic;
using System.Linq;

namespace ServerGame.GameObject
{
    [Desc("玩家基本数据")]
    [DataContract]
    public class DataBasic
    {
        #region 基本属性

        [Desc("用户ID")]
        [DataMember]
        public long Uuid = 0;

        #endregion

        //基础数据

        [Desc("昵称")]
        [DataMember]
        public string Name = "玩家";

        [Desc("性别 男性 女性")]
        [DataMember]
        public string Gender = "男性";

        [Desc("门派")]
        [DataMember]
        public string Family = "月宫";

        [Desc("头衔")]
        [DataMember]
        public string Title = "普通百姓";

        [Desc("年龄")]
        [DataMember]
        public int Age = 14;


        [Desc("金币")]
        [DataMember]
        public long Gold = 0;
        [Desc("钻石")]
        [DataMember]
        public long Gem = 0;
        [Desc("潜能")]
        [DataMember]
        public long Pot = 100;


        #region VIP

        [Desc("等级")]
        [DataMember]
        public int VipLevel = 0;
        [Desc("经验值")]
        [DataMember]
        public int VipExp = 0;


        #endregion

        #region 挂机

        [Desc("挂机模式 0=不在挂机 1=外出修行 2=闭关修炼")]
        [DataMember]
        public int OfflineMode = 0;
        [Desc("挂机 开始时间")]
        [DataMember]
        public long OfflineTicks = 0;

        #endregion


    }
}